<?php
//rosjan66@gmial.com               
      include  'Constants.inc.php' ;
      include  'MainController.php' ;
      include  'Session.php' ;     
      
      $session=Session::getInstance();
      
                                                                  
      $application=new MainController("index",$session);
      $topLeft=new MainController("topLeft");                  
      $topMiddle=new MainController("topMiddle");
      $topRight=new MainController("topRight");
      
      $middleLeft=new MainController("middleLeft");                  
      $middleMiddle=new MainController("middleMiddle");
      $middleRight=new MainController("middleRight");
      
      $bottomLeft=new MainController("bottomLeft");                  
      $bottomMiddle=new MainController("bottomMiddle");
      $bottomRight=new MainController("bottomRight");
       
       $application->addController($topLeft);
       $application->addController($middleLeft);
       $application->addController($bottomLeft); 
       
       $application->addController($topRight);
       $application->addController($middleRight);
       $application->addController($bottomRight); 
        
       $application->addController($topMiddle);
       $application->addController($middleMiddle);
       $application->addController($bottomMiddle);
       
      
      
      /*
      
      $application1=new MainController("podrzednyKontroller1",$session);     
      $application2=new Controller("podrzednyKontroller2");
      $application=new MainController("glownyKontroller");
      
      $application->addController($application2);
      $application1->addController($application2);   
      $application->addController($application1);         
     */
     
            $application->setTemplate('index.tpl');   
            $application->getHttp();
            $application->getModel();
            $application->show();
         //   print_r($application->getView());
            
?>


